#coding = utf-8
import os
import sys

import  knn

def main(argv=None):
    if argv is None:
        argv = sys.argv
    #group,lables = knn.create_data_set()
    fileName='d:/data.txt'
    group,lables=knn.file2matrix(fileName)
    print group
    #test 20171019
    print lables

    #调用分类器获得分类结果并打印分类输出结果
    print knn.classfiy0([170,75,90],group,lables,3)

if __name__ == '__main__':
    sys.exit(main())